/**
 * 
 */
package com.windbell.util;

import java.util.List;

/**
 * @author keymean
 * 
 */
public class PageQuery<T> {

	/**
	 * 总纪录数
	 */
	protected int total;

	/**
	 * 每页显示条数
	 */
	protected int take = 5;

	protected int pageSize = 5;

	protected int skip;

	/**
	 * 当前页数
	 */
	protected int page = 1;

	/**
	 * 查询结果
	 */
	protected List<T> data;

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getTake() {
		return take;
	}

	public void setTake(int take) {
		this.take = take;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getSkip() {
		return skip;
	}

	public void setSkip(int skip) {
		this.skip = skip;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> result) {
		this.data = result;
	}

}
